<?php

namespace app\api\model;

/**
 * 钱包模型
 * Class Category
 * @package app\common\model
 */
class InvitationActivity extends BaseModel
{
    protected $table = 'yoshop_invitation_activity';
    public function add($refreeId,$user_id,$active_id)
    {
        $data = [
            'user_id'=>$refreeId, //邀请人id
            'invitation_id' => $active_id,
            'invitation_user_id' => $user_id, //被邀请人id
            'is_authentication' => 0,
            'create_time' => time(),
        ];
        $res = $this->insertInfo($data);
        if($res){
            return true;
        }else{
            return false;
        }
    }
}
